package com.lonely.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lonely.goods.domain.dto.goods.GoodsQuotationSheetPartDTO;
import com.lonely.order.domain.entity.SysOrder;
import com.lonely.order.domain.entity.SysOrderPart;

import java.util.List;

/**
 * @author: 黄志标
 * @date: 2025/6/25 15:42
 * @description: 订单部件接口
 */
public interface IOrderPartService extends IService<SysOrderPart> {

    /**
     * 创建订单部件相关数据
     *
     * @param sysOrder
     * @param goodsId
     */
    void createOrderParts(SysOrder sysOrder, Long goodsId);


    /**
     * 查询指定订单的报价单部件物料信息
     *
     * @param orderId
     * @return
     */
    List<GoodsQuotationSheetPartDTO> queryQuotationSheetPartDetail(Long orderId);
}
